package com.ty.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("b_order_detail")
public class OrderDetail{
    /** 订单项ID */
    @TableId(value = "order_detail_id",type = IdType.AUTO)
    @ApiModelProperty(name = "订单项ID",notes = "")
    private Integer orderDetailId ;
    /** 创建时间 */
    @TableField(exist = false)
    @ApiModelProperty(name = "创建时间",notes = "")
    private Date createTime ;
    /** 更新时间 */
    @TableField(exist = false)
    @ApiModelProperty(name = "更新时间",notes = "")
    private Date updateTime ;
    /** 店铺id */
    @ApiModelProperty(name = "店铺id",notes = "")
    private Integer shopId ;
    /** 订单id */
    @ApiModelProperty(name = "订单id",notes = "")
    private Integer orderId ;
    /** 分类id */
    @ApiModelProperty(name = "分类id",notes = "")
    private Integer categoryId ;
    /** 产品ID */
    @ApiModelProperty(name = "产品ID",notes = "")
    private Integer spuId ;
    /** 产品SkuID */
    @ApiModelProperty(name = "产品SkuID",notes = "")
    private Integer skuId ;
    /** 用户Id */
    @ApiModelProperty(name = "用户Id",notes = "")
    private Integer userId ;
    /** 购物车产品个数 */
    @ApiModelProperty(name = "购物车产品个数",notes = "")
    private Integer count ;
    /** 产品名称 */
    @ApiModelProperty(name = "产品名称",notes = "")
    private String spuName ;
    /** sku名称 */
    @ApiModelProperty(name = "sku名称",notes = "")
    private String skuName ;
    /** 产品主图片路径 */
    @ApiModelProperty(name = "产品主图片路径",notes = "")
    private String pic ;
    /** 单个orderItem的配送类型3：无需快递 */
    @ApiModelProperty(name = "单个orderItem的配送类型3：无需快递",notes = "")
    private Integer deliveryType ;
    /** 加入购物车时间 */
    @ApiModelProperty(name = "加入购物车时间",notes = "")
    private Date shopCartTime ;
    /** 产品价格 */
    @ApiModelProperty(name = "产品价格",notes = "")
    private Integer price ;
    /** 商品总金额 */
    @ApiModelProperty(name = "商品总金额",notes = "")
    private Integer spuTotalAmount ;


}
